import request from '@/api/socialized-servce/index.js'
const api = request
//报工单
export default {
    //id删除
    delById(id) {
        const url = `finance/settlementReport/delById?id=${id}`
        return api.request(url, 'get')
    },
    //id批量查询
    queryListById(idList) {
        const url = `finance/settlementReport/queryListById?idList=${idList}`
        return api.request(url, 'get')
    },
    //条件查询
    queryByCondition(params) {
        const url = "finance/settlementReport/queryByCondition"
        return api.request(url, 'post', {
            ...params
        })
    },
    // 条件分页查询
    queryPageByCondition(params) {
        const url = "finance/settlementReport/queryPageByCondition"
        return api.request(url, 'post', {
            ...params
        })
    },
    //提交
    commit(id) {
        const url = `finance/settlementReport/commit?id=${id}`
        return api.request(url, 'get')
    },
    //确认
    confirm(id) {
        const url = `finance/settlementReport/confirm?id=${id}`
        return api.request(url, 'get')
    },
    //确认
    confirmAll(idList) {
        const url = `finance/settlementReport/confirmAll?idList=${idList}`
        return api.request(url, 'get')
    },
    //查询送货单
    queryByNoReportDeliver(no) {
        const url = `finance/reportDeliver/queryByNo?no=${no}`
        return api.request(url, 'get')
    },
    //查询报工单
    queryByNoReportWork(no) {
        const url = `finance/reportWork/queryByNo?no=${no}`
        return api.request(url, 'get')
    },

    //id项目订单
    queryReportExecuteById(id) {
        const url = `service/reportExecute/queryById?id=${id}`
        return api.request(url, 'get')
    },

    // 获取当前系统用户
    queryPartyUserByCondition(params) {
        let url = 'system/partyUser/queryByCondition'
        return api.request(url, 'post', params)
    },
    //获取设备
    resourceAllocationList(params) {
        const url = `service/organizationDevice/queryByCondition`
        return api.request(url, 'post',{...params})
    },
    
}
